package org.dromara.xxmj.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * 课程查询数据传输对象
 *
 * @author Vincent
 */
@Data
//@EqualsAndHashCode(callSuper = true)
public class UserLoginDTO implements Serializable {

    private static final long serialVersionUID = 1L;

//    /**
//     * 客户端id
//     */
//    private String clientId;

    /**
     * 手机号码
     */
    @NotBlank(message = "手机号码不能为空")
    @Length(min = 11, max = 11, message = "手机号码长度不正确")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号码格式不正确")
    private String phoneNumber;

    /**
     * 用户密码
     */
    private String password;

    /**
     * 验证码
     */
    private String code;

    /**
     * 唯一标识
     */
    @NotBlank(message = "唯一标识不能为空")
    private String uuid;

}
